<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
$intLID = (int)$_data["LottoID"];
$strBT = "";//trim($_data["Bet_Type"]);
$arrLotto = $_arrLotto[$intLID];
$intLType = (int)$arrLotto["LType"];
$arrWG = explode(",", $_data["WebGID"]);

$isStopBet = (int)$_data["isStopBet"];
if($isStopBet != 0)$isStopBet = 1;

switch($intLType){
	case 2:
		$strBT = "51";
		for($i = 52; $i <= 93; $i++)$strBT .= ",".$i;
		break;

	case 4:
		$strBT = "1,2,3,4,5,6,7,8,9,10,11,12,13,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35";
		break;
}

$strCon = "";
foreach($arrWG as $k => $strWGID){
	$arrTmp = explode(":", $strWGID);
	$intWID = $arrTmp[0]*1;
	$intGID = $arrTmp[1]*1;

	$arrW = $arrWeb[$intWID];
	$strName = $arrW[0];
	$strDir = $arrW[1];
	$strUrl = $arrW[2];

	$strCon .= $strName." ( ".$strDir." ) \n====================================================\n";

	$arrC = file("http://".$strUrl."/k_admin/GameCenter/setWebGameOpenOff.php?UserAcc=".urlencode($_SESSION["Admin_Info"] -> Account)."&LottoID=".$intLID."&isStopBet=".$isStopBet."&Bet_Type=".urlencode($strBT)."&Web=".$intWID."&GID=".$intGID);
	$strCon .= implode("", $arrC);
}

$strLog = "UserAcc => ".$_SESSION["Admin_Info"] -> Account."\n";
$strLog .= "Param => ".print_r($_data, true)."\n";
$strLog .= "Cont => ".$strCon."\n";
AddData_Log($_SESSION["Admin_Info"] -> ID, "中心統一停押", $strLog);

WebOutputHTML($strCon, 0);
 ?>
 <script type="text/javascript">
 <!--
parent.ChangeRefreshSec();
 //-->
 </script>